package com.atguigu.lease.web.app.service;

import com.atguigu.lease.model.entity.LeaseAgreement;
import com.atguigu.lease.web.app.vo.agreement.AgreementDetailVo;
import com.atguigu.lease.web.app.vo.agreement.AgreementItemVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【lease_agreement(租约信息表)】的数据库操作Service
 * @createDate 2023-07-26 11:12:39
 */
public interface LeaseAgreementService extends IService<LeaseAgreement> {

    /**
     * 获取个人租约基本信息列表
     *
     * @param phone 手机号码
     * @return 个人租约信息
     */
    List<AgreementItemVo> listAgreementItemByPhone(String phone);

    /**
     * 根据id获取租约详细信息
     *
     * @param id 租约id
     * @return 租约详细信息
     */
    AgreementDetailVo getAgreementDateilVoById(Long id);
}
